package com.qianke.domain.dto;

import lombok.Data;

import java.util.TreeMap;

/**
 * @Author guk
 * @Date 2/19/19 11:18 AM
 */
@Data
public class WechatTemplateDto {

    private String touser;
    private String template_id;
    private String url;
    private TreeMap<String, TreeMap<String, String>> data;


    public static TreeMap<String, String> item(String value, String color) {
        TreeMap<String, String> params = new TreeMap<>();
        params.put("value", value);
        params.put("color", color);
        return params;
    }
}
